package com.lei.ucenter.util;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
@Component
@ConfigurationProperties(prefix = "wx.open")
@Data
public class WxUtil implements InitializingBean {
    private String appId;
    private String appSecret;
    private String redirectUrl;
    public static String APP_ID;
    public static String APP_SECRET;
    public static String REDIRECT_URL;
    @Override
    public void afterPropertiesSet() throws Exception {
        APP_ID=appId;
        APP_SECRET=appSecret;
        REDIRECT_URL=redirectUrl;
    }
}
